<?php
class Upload extends AppModel {
	var $name = 'Upload';
// 	var $actsAs = array(
//         'FileUpload.FileUpload' => array(
//           'uploadDir' => UPLOAD_PATH,
//           'fields' => array('name' => 'file_name', 'type' => 'file_type', 'size' => 'file_size'),
//           'allowedTypes' => array('application/pdf')
//         )
// 	);

	var $displayField = 'name';
	var $validate = array(
		'name' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
		'type' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				//'message' => 'Your custom message here',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed
}
